import request from '@/api/request'

// 获取订单列表
export function findOrdersByPage(start,limit,data) {
  return request({
    url: `/lejuAdmin/order/findOrdersByPage/${start}/${limit}`,
    method: 'post',
    data
  })
}

// 关闭订单
export function finishOrder(orderId) {
    return request({
      url: `/lejuAdmin/order/finishOrder/${orderId}`,
      method: 'post',
    })
  }

//   查询订单明细
export function orderDetail(orderId) {
    return request({
      url: `/lejuAdmin/order/orderDetail/${orderId}`,
      method: 'get',
    })
  }

//   强制确认收货
export function receiveProductsForce(orderId) {
    return request({
      url: `/lejuAdmin/order/receiveProductsForce/${orderId}`,
      method: 'post',
    })
  }

// 确认发货

export function sendDone(data) {
    return request({
      url: '/lejuAdmin/order/sendDone',
      method: 'post',
      data
    })
  }


